﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace AJWPFAdmin.Core.Components.AJTable.ViewModels
{
    public class AJTableAllSelectionModel : BindableBase
    {
        private bool? _checked = false;
        public bool? Checked
        {
            get { return _checked; }
            set
            {
                if (SetProperty(ref _checked, value))
                {
                    IsThreeState = !value.HasValue;
                }
            }
        }

        private bool _isThreeState = false;
        public bool IsThreeState
        {
            get { return _isThreeState; }
            set { SetProperty(ref _isThreeState, value); }
        }

        private int _selectedCount ;
        public int SelectedCount
        {
            get { return _selectedCount; }
            set { SetProperty(ref _selectedCount, value); }
        }

        private Visibility _visibility = Visibility.Collapsed;
        public Visibility Visibility
        {
            get { return _visibility; }
            set { SetProperty(ref _visibility, value); }
        }
    }
}
